#ifndef __BSP_H__
#define	__BSP_H__

#ifdef __cplusplus
extern "C"
{
#endif
typedef enum {Key_NONE=0,Key_OK,Key_UP,Key_DOWN,Key_ONOFF,Long_Key_ONOFF
}KeyResultEnum;

typedef enum{HIGH,LOW,
}IOStateEnum;

typedef enum{OUTSIDE_BOX,INSIDE_BOX,
}HallStateEnum;

typedef enum{NORMAL=0,SETUP_INFO,DISPLAY_TIME,
}KeySwitchFlagEnum;

#ifdef __cplusplus
}
#endif






void uDelay(unsigned char l);
void delayms(uint32_t ms);
//debug
void DeviceDebug();
void RefreshValue();
void IOCtrInit(void);
void BatteryDisplay();
void DisplayModel();
void CleanData();
void MeasureEVT();
extern KeySwitchFlagEnum GlobalSwitchFlag;
#endif

